package com.huawei.od.c.easy.t4;

public class T4 {
    public static void main(String[] args) {
        String[] arr = {"huawei/computing/no/one", "huawei/computing", "huawei", "huawei/cloud/no/one", "huawei/wireless/no/one"};
        int n = 2;
        String t = "computing";
        t4(n, t, arr);
    }

    private static void t4(int n, String t, String[] arr) {
        String[][] baseArr = new String[10][arr.length];

        for (int i = 0; i < arr.length; i++) {
            String s = arr[i];
            String[] split = s.split("/");
            for (int j = 0; j < split.length; j++) {
                baseArr[j][i] = split[j];
            }
        }
        int ans = 0;
        String[] strings = baseArr[n-1];
        for (String s : strings) {
            if(t.equals(s)){
                ans++;
            }
        }
        System.out.println(ans);
    }
}
